﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="admin_activityadd.aspx.cs" Inherits="Lawyer.Web.Admin.admin_activityadd" Title="Legal Firm Management System V1.0" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript">
$(function(){

        $("div.checker>span").removeClass("checked");
       $(".form-input input[type='checkbox'] ").click(function(){
        var check=$(this).attr("checked");
        if(check){
        $("div.archive").show("slow");
        }else{
             $("div.archive").hide("slow");        
        }
       });
})

</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainContent" runat="server">
<div class="main-content">
                        <header>
                            <h2>New Activity</h2>
                        </header>
                        
                        <section class="container_6 clearfix">
                            <!-- Forms Section -->
                            <div class="grid_6">
                                <div class="portlet">
                                    <header>
                                        <h2>Activity Info</h2>
                                    </header>
                                    <section class="form has-validation">
                                            
                                            <div class="clearfix">
                                                <label for="form-timezone" class="form-label">Choose Type <small>Choose your 
                                                acticity type</small></label>
                                                <div class="form-input"><asp:DropDownList ID="ActivityTypeList" runat="server"></asp:DropDownList> <a href="admin_activitytypeadd.aspx" class="zoombox large button">
                                                    New Activity Type</a></div>
                                                
                                            </div>
                                            <div class="clearfix">
                                                <label for="form-name" class="form-label" >Activity Name <em>*</em><small>Enter 
                                                your activity name</small></label>
                                                <div class="form-input"><input type="text" id="txtActivityName" name="name" required="required" runat="server" /></div>
                                            </div>
                                            <div class="clearfix">
                                                <label for="form-textarea" class="form-label">Activity Details <em>*</em><small>Describe 
                                                activity</small></label>
                                                <div class="form-input form-textarea"><asp:TextBox ID="txtActivityDetails" TextMode="MultiLine" runat="server"></asp:TextBox></div>
                                            </div>
                                            
                                            <div class="clearfix">
                                                <label for="form-timezone" class="form-label">Choose Lawyer <small>Choose lawyer 
                                                for activity</small></label>
                                                <div class="form-input"><asp:DropDownList ID="LawyerList" runat="server"></asp:DropDownList></div>
                                            </div>
                                            
                                           <div class="clearfix">
                                                <label for="form-name" class="form-label" >Start Time <em>*</em><small>Choose 
                                                your start time</small></label>

                               
                                                <div class="form-input"><input type="text" id="txtStartTime" name="name" onFocus="WdatePicker({startDate:'%y-%M-01 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" required="required" runat="server" /></div>
                                            </div>
                                            
                                            <div class="clearfix">
                                                <label for="form-name" class="form-label" >End Time <em>*</em><small>Choose your 
                                                end time</small></label>

                                                
                                                <div class="form-input"><input type="text" id="txtEndTime"  name="name" onFocus="WdatePicker({startDate:'%y-%M-01 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" required="required" runat="server" /></div>

                                            </div>
                                            <div class="clearfix">
                                                <label for="form-name" class="form-label" >Fee(￡) <em>*</em><small>Input fee of 
                                                the activity</small></label>
                                                <div class="form-input"><input type="text" id="txtFee" name="name" required="required" runat="server" /></div>
                                            </div>
                                            
                                            <div class="clearfix isarchive" id="CheckDiv" runat = "server">
                                                <label id="Label1" for="form-updates" class="form-label" runat="server">Case 
                                                Related? <small>If related with case </small></label>
                                                &nbsp;<div class="form-input"><input type="checkbox" id="checkArchive" value="1" runat ="server" /></div>
                                            </div>
                                            
                                            <div class="clearfix  archive nonedisplay" id="ArchiveDiv" runat = "server">
                                                <label for="form-timezone" class="form-label">Choose Case <small>Choose your 
                                                relative case</small></label>
                                                <div class="form-input"><asp:DropDownList ID="ArchiveList" runat="server"></asp:DropDownList></div>
                                            </div>
                                            

                                            <div class="form-action clearfix">
                                                <asp:Button CssClass="large button-gray ui-corner-all"  ID="btnOK" 
                                                    data-icon-primary="ui-icon-circle-check"  runat="server" Text="OK" 
                                                    onclick="btnOK_Click" ></asp:Button>
                                                    
                                                <input class="large button-gray ui-corner-all" type="button" onclick="javascript:history.go(-1);" value="Go back" />
                                            </div>
                                       
                                    </section>
                                </div>
                            </div>
                            <!-- End Forms Section -->

                            <!-- Forms Section -->
                            <!-- End Forms Section -->

                        </section>
                    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="SideBar" runat="server">
<nav>
    <a class="chevron" href="#">»</a>
    <ul>
                                <li class="current"><a href="admin_activityadd.aspx">New Activity</a></li>
                                <li><a href="admin_activity.aspx">All List</a></li>
                                <li><a href="admin_activity.aspx?status=1"> To do list</a></li>
                                <li><a href="admin_activity.aspx?status=2">Job done List</a></li>
                                <li><a href="admin_activitytype.aspx">Activity Type</a></li> 
    </ul>
</nav>
</asp:Content>